import request from '@/utils/request'

export function pageMainCost(data) {
  return request({
    url: '/mainmaterial/page',
    method: 'post',
    data
  })
}
export function getMainCost(id) {
  return request({
    url: `/mainmaterial/get/${id}`,
    method: 'get',
  })
}
export function deleteMainCost(id) {
  return request({
    url: `/mainmaterial/delete/${id}`,
    method: 'delete',
  })
}
export function saveMainCost(data) {
  return request({
    url: '/mainmaterial/save',
    method: 'put',
    data
  })
}
export function editMainCost(data) {
  return request({
    url: '/mainmaterial/edit',
    method: 'post',
    data
  })
}
